var app = getApp(), util = require("../../utils/util.js");

Page({
    data: {},
    onLoad: function(n) {
        var e = this;
        console.log(n.zdid), app.util.request({
            url: "entry/wxapp/MyOrderInfo",
            cachetime: "0",
            data: {
                order_id: n.zdid
            },
            success: function(n) {
                console.log("zdinfo", n.data), e.setData({
                    zdinfo: n.data,
                    yhze: Number(n.data.preferential) + Number(n.data.preferential2)
                });
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});